const Login = () => import('views/Login/Login') //登录
const loginWechat = () => import('views/loginWechat/loginWechat') //微信浏览器登录
const bindingPhone = () => import('views/Login/bindingPhone') //绑定手机号
const thirdLoginResult = () => import('views/Login/thirdLoginResult') //第三方登录结果
const weixinOAuth2 = () => import('views/weixinOAuth2/weixinOAuth2') //获取appid
const register = () => import('views/register/register') //注册
const agreement = () => import('views/register/agreement') //注册协议
const forgetPsw = () => import('views/forgetPsw/forgetPsw') //忘记密码
const Account = () => import('views/account/account') //账户设置
const editData = () => import('views/account/editData') //修改资料
const security = () => import('views/account/security') //账号与安全
const logoutPage = () => import('views/account/logoutPage') // 退出登录(微信浏览器专用)

export default [
    {
        path: '/Login',
        component: Login,
        meta: {
            title: '登录中心',
            showHeadBox: false, //显示HeadBox组件
            titleName: '登录中心' //HeadBox组件中间显示的文字
        }
    },
	{
	    path: '/loginWechat',
	    component: loginWechat,
	    meta: {
	        title: '登录中心',
	        showHeadBox: false, //显示HeadBox组件
	        titleName: '登录中心' //HeadBox组件中间显示的文字
	    }
	},
    {
        path: '/bindingPhone',
        component: bindingPhone,
        meta: {
            title: '绑定手机号',
            showHeadBox: false, //显示HeadBox组件
            titleName: '绑定手机号' //HeadBox组件中间显示的文字
        }
    },
    {
        path: '/thirdLoginResult',
        component: thirdLoginResult,
        meta: {
            title: '微信登录',
            showHeadBox: false, //显示HeadBox组件
            titleName: '微信登录' //HeadBox组件中间显示的文字
        }
    },
    {
        path: '/weixinOAuth2',
        name: 'weixinOAuth2',
        component: weixinOAuth2,
        meta: {
            title: '授权中',
            requireAuth: false // 添加该字段，表示进入这个路由是需要登录的
        }
    },
    {
        path: '/register',
        component: register,
        meta: {
            title: '注册',
            showHeadBox: false, //显示HeadBox组件
            titleName: '注册账号' //HeadBox组件中间显示的文字
        }
    },
    {
        path: '/forgetPsw',
        component: forgetPsw,
        meta: {
            title: '忘记密码',
            showHeadBox: false, //显示HeadBox组件
            titleName: '忘记密码' //HeadBox组件中间显示的文字
        }
    },
    {
        path: '/agreement',
        component: agreement,
        meta: {
            title: '注册协议',
            showHeadBox: false, //显示HeadBox组件
            keepAlive: false, //添加该字段，表示需要不缓存
            requireAuth: false // 添加该字段，表示进入这个路由是需要登录的
        }
    },
    {
        path: '/account',
        name: 'account',
        component: Account,
        requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
        meta: {
            title: '账户设置',
            showHeadBox: false, //显示HeadBox组件
            titleName: '账户设置' //HeadBox组件中间显示的文字
        }
    },
    {
        path: '/editData',
        component: editData,
        requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
        meta: {
            showHeadBox: false, //显示HeadBox组件
            title: '修改资料'
        }
    },
    {
        path: '/security',
        name: 'security',
        component: security,
        requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
        meta: {
            showHeadBox: false, //显示HeadBox组件
            title: '更多信息'
        }
    },
    {
        path: '/logoutPage',
        name: 'logoutPage',
        component: logoutPage,
        requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
        meta: {
            showHeadBox: false, //显示HeadBox组件
            title: '退出登录',
            requireAuth: true // 添加该字段，表示进入这个路由是需要登录的
        }
    }
]
